﻿using System.Xml;

namespace Sherwood.Configuration
{
    /// <summary>
    /// Allows the implementing class to receive configuration from XML. Typically used for a pluggable architecture.
    /// </summary>
    public interface IXmlConfigurable
    {
        /// <summary>
        /// Configures the implementing class with the given XML configuration
        /// </summary>
        /// <param name="config">An XML reader providing the configuration</param>
        void Configure(XmlReader config);
    }
}